package com.appspot.didit.client.tag;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.user.client.ui.TextBox;

public class TagCloudShowEvent extends GwtEvent<TagCloudShowHandler> {

    private static Type<TagCloudShowHandler> TYPE;

    private TextBox tb;
    
    public static Type<TagCloudShowHandler> getType() {
            return TYPE != null ? TYPE
                            : (TYPE = new Type<TagCloudShowHandler>());
    }

    public TagCloudShowEvent(TextBox tb) {
    	this.tb = tb;
    }

    public TextBox getTb() {
		return tb;
	}

	public void setTb(TextBox tb) {
		this.tb = tb;
	}

	@Override
    public final Type<TagCloudShowHandler> getAssociatedType() {
            return getType();
    }

    protected void dispatch(TagCloudShowHandler handler) {
            handler.onTagCloudShow(this);
    }

}
